package o2o.utils;

import o2o.dao.VO.order.OrderGoodsVO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: yangtongkuan
 * Date: 2019/2/18
 * Time: 11:58
 * Description: No Description
 */
public class BackPriceResultInfo {

    private boolean success = false;//是否成功
    private String message;//成功信息
    private String error;//错误信息

    private Integer backTotalCount;
    private Double backTotalGoodsPrice;
    private Double backTotalPacketPrice;

    private Double backTotalPrice;
    private Double alreadyApplyMoney = 0.0d; // 已经申请的退款金额  包括已经退款的和申请退款中的
    private List<OrderGoodsVO> orderGoodsVOList;

    public Double getAlreadyApplyMoney() {
        return alreadyApplyMoney;
    }

    public BackPriceResultInfo setAlreadyApplyMoney(Double alreadyApplyMoney) {
        this.alreadyApplyMoney = alreadyApplyMoney;
        return this;
    }

    public boolean isSuccess() {
        return success;
    }

    public BackPriceResultInfo setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public BackPriceResultInfo setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getError() {
        return error;
    }

    public BackPriceResultInfo setError(String error) {
        this.error = error;
        return this;
    }

    public Integer getBackTotalCount() {
        return backTotalCount;
    }

    public BackPriceResultInfo setBackTotalCount(Integer backTotalCount) {
        this.backTotalCount = backTotalCount;
        return this;
    }

    public Double getBackTotalGoodsPrice() {
        return backTotalGoodsPrice;
    }

    public BackPriceResultInfo setBackTotalGoodsPrice(Double backTotalGoodsPrice) {
        this.backTotalGoodsPrice = backTotalGoodsPrice;
        return this;
    }

    public Double getBackTotalPacketPrice() {
        return backTotalPacketPrice;
    }

    public BackPriceResultInfo setBackTotalPacketPrice(Double backTotalPacketPrice) {
        this.backTotalPacketPrice = backTotalPacketPrice;
        return this;
    }

    public Double getBackTotalPrice() {
        return backTotalPrice;
    }

    public BackPriceResultInfo setBackTotalPrice(Double backTotalPrice) {
        this.backTotalPrice = backTotalPrice;
        return this;
    }

    public List<OrderGoodsVO> getOrderGoodsVOList() {
        return orderGoodsVOList;
    }

    public BackPriceResultInfo setOrderGoodsVOList(List<OrderGoodsVO> orderGoodsVOList) {
        this.orderGoodsVOList = orderGoodsVOList;
        return this;
    }

    public BackPriceResultInfo() {
        this.success = true;
    }

    public BackPriceResultInfo(String error) {
        this.success = false;
        this.error = error;
    }

    public BackPriceResultInfo(String message, List<OrderGoodsVO> orderGoodsVOList) {
        this.success = true;
        this.message = message;
        this.orderGoodsVOList = orderGoodsVOList;
    }

    public BackPriceResultInfo(String message, Integer backTotalCount, Double backTotalPrice, List<OrderGoodsVO> orderGoodsVOList) {
        this.success = true;
        this.message = message;
        this.backTotalCount = backTotalCount;
        this.backTotalPrice = backTotalPrice;
        this.orderGoodsVOList = orderGoodsVOList;
    }
}